//
//  接口使用实例.m
//  陶瓷
//
//  Created by 王戈 on 15/7/30.
//  Copyright (c) 2015年 王戈. All rights reserved.
//

#import <Foundation/Foundation.h>

/*
- (void)test {
    // 添加或取关
    //    [[TCNetworkTool sharedNetTool] addFavouritesWithId:@"2" andUserId:@"santor" andCollectType:kTCCollectTypeMarket andTypeID:@"1" andAddTime:@"2015-07-27T18:11:48.1088363+08:00" andSuccessBlocks:^(NSString *successMessage) {
    //        [STAlertView st_promptAlertWithMessage:successMessage];
    //    } andFailureBlocks:^(NSString *failureMessage) {
    //        [STAlertView st_promptAlertWithMessage:failureMessage];
    //    }];
    
    // 查看收藏列表
    [[TCNetworkTool sharedNetTool] favouritetListWithPn:@"1" andSuccessBlocks:^(NSArray *resultArray) {
        
    } andFailureBlocks:^(NSString *failureMessage) {
        
    }];
    
    // 查看是否关注
    [[TCNetworkTool sharedNetTool] checkIsFavouritesWithType:kTCCollectTypeMarket andObjectID:@"2" andSuccessBlocks:^(NSString *successMessage) {
        
    } andFailureBlocks:^(NSString *failureMessage) {
        
    }];
    
    // 修改密码
    [[TCNetworkTool sharedNetTool] changePasswordWithNewPD:@"123123" andConfirmPassword:@"123123" andOldPassword:@"123124" andSuccessBlocks:^(NSString *successMessage) {
        
    } andFailureBlocks:^(NSString *failureMessage) {
        
    }];
    
    // 重置密码
    [[TCNetworkTool sharedNetTool] setPasswordWithNewPasswork:@"123123" confirmPassword:@"123123" andSuccessBlocks:^(NSString *successMessage) {
        
    } andFailureBlocks:^(NSString *failureMessage) {
        
    }];
    // 获得发布信息列表
    [[TCNetworkTool sharedNetTool] messageListWithPn:@"1" andSuccessBlocks:^(NSArray *resultArray) {
        
    } andFailureBlocks:nil];
    
    // 更改用户信息
    [[TCNetworkTool sharedNetTool] userInfoEditWithHeadUrl:@"www.baidu.com" andNickName:@"Santor" andSuccessBlocks:^(NSString *successMessage) {
        
    } andFailureBlocks:^(NSString *failureMessage) {
        
    }];
    
    // 发布尾货
    [[TCNetworkTool sharedNetTool] tailGoodsAddWithHeadImageUrl:@"www.baidu.com" andBrand:@"niubi" andStandard:@"ddd" andCount:@"ddd" andPrice:@"12345" andLinkMan:@"wangge" andContactNumber:@"1234567" andCompanyAddress:@"tianjin" andType:@"0" andBrowseNumber:@"10" andLatitude:@"1.1" andLongitude:@"1.1" andUserId:@"santor" andIsTop:@"ture" andCreateTime:@"2015-07-30T17:18:41.7779944+08:00" andState:@"0" andCollectTimes:@"0" andAreaId:@"15" andSuccessBlocks:^(NSString *successMessage) {
    } andFailureBlocks:nil];
    
    // 修改尾货信息
 [[TCNetworkTool sharedNetTool] tailGoodsEditWithID:@"1" andHeadImageUrl:@"www.baidu.com" andBrand:@"niubi" andStandard:@"ddd" andCount:@"ddd" andPrice:@"12345" andLinkMan:@"wangge" andContactNumber:@"1234567" andCompanyAddress:@"tianjin" andType:@"0" andBrowseNumber:@"10" andLatitude:@"1.1" andLongitude:@"1.1" andUserId:@"santor" andIsTop:@"ture" andCreateTime:@"2015-07-30T17:18:41.7779944+08:00" andState:@"0" andCollectTimes:@"0" andAreaId:@"15" andSuccessBlocks:^(NSString *successMessage) {
 } andFailureBlocks:nil];
 
//}
 
 // 删除尾货信息
 [[TCNetworkTool sharedNetTool] tailGoodsDeleteWithID:@"0" andSuccessBlocks:^(NSString *successMessage) {
 } andFailureBlocks:^(NSString *failureMessage) {
 }];

 // 删除招聘信息
 [[TCNetworkTool sharedNetTool] RecruitmentDeleteWithID:@"0" andSuccessBlocks:^(NSString *successMessage) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 
 
 // 添加商铺信息
 [[TCNetworkTool sharedNetTool] rentAddWithID:@"0" andTitle:@"niniubi" andPrice:@"2000" andArea:@"diqu" andType:@"type" andClostTo:@"closeto" andHistory:@"lishi" andAddress:@"dizhi" andDescription:@"miaoshu" andImageUrl:@"www.baidu.jpg" andBrowseCount:@"11" andLatitude:@"1.1" andLongitude:@"1.1" andIsTop:@"true" andUserID:@"12" andCreatTime:@"2015-08-01T15:17:15.9712766+08:00" andState:@"0" andAreaId:@"16" andCollectTimes:@"5" SuccessBlocks:^(NSString *successMessage) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 // 修改商铺信息
 [[TCNetworkTool sharedNetTool] rentEditWithID:@"0" andTitle:@"niniubi" andPrice:@"2000" andArea:@"diqu" andType:@"type" andClostTo:@"closeto" andHistory:@"lishi" andAddress:@"dizhi" andDescription:@"miaoshu" andImageUrl:@"www.baidu.jpg" andBrowseCount:@"11" andLatitude:@"1.1" andLongitude:@"1.1" andIsTop:@"true" andUserID:@"12" andCreatTime:@"2015-08-01T15:17:15.9712766+08:00" andState:@"0" andAreaId:@"16" andCollectTimes:@"5" SuccessBlocks:^(NSString *successMessage) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 // 删除商铺信息
 [[TCNetworkTool sharedNetTool] rentDeleteWithID:@"59" andSuccessBlocks:^(NSString *successMessage) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 // 获取市场信息
 [[TCNetworkTool sharedNetTool] getMarketListSuccessBlocks:^(NSArray *resultArray) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 
 // 获取市场ID获取市场详情
 [[TCNetworkTool sharedNetTool] MarketDetailWithID:@"2" andSuccessBlocks:^(NSArray *resultArray) {
 MarketModel *market = [resultArray firstObject];
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 
 // 根据ID获取公司详情
 [[TCNetworkTool sharedNetTool ] GetCompanyWithID:@"2" andSuccessBlocks:^(NSArray *resultArray) {
 CompanyModel *company = [resultArray firstObject];
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 
 // 推荐公司
 [[TCNetworkTool sharedNetTool] PushCompanyListWithSuccessBlocks:^(NSArray *resultArray) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 
 // 通过关键词搜索公司
 [[TCNetworkTool sharedNetTool] CompanyListWithBrand:@"瓷砖" andPN:@"1" andSuccessBlocks:^(NSArray *resultArray) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 
 // 通过ID获取招聘信息
 [[TCNetworkTool sharedNetTool] RecruitmentDetailWithID:@"100" andSuccessBlocks:^(NSArray *resultArray) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 
 // 置顶招聘信息
 [[TCNetworkTool sharedNetTool] recruitmentTopWithID:@"105" andSuccessBlocks:^(NSString *successMessage) {
 
 } andFailureBlocks:^(NSString *failureMessage) {
 
 }];
 
 // 添加招聘信息
 [[TCNetworkTool sharedNetTool] recruitmentAddWithId:@"2" andTitle:@"ios" andWage:@"1000" andAddress:@"hehe" andPosition:@"zhe" andContactNumber:@"falj" andRequirements:@"ment" andCompanyName:@"name" andCompanyScale:@"sacle" andCompanyFeature:@"feature" andLatitude:@"1.1" andLongitude:@"1.1" andState:@"0" andCreateTime:@"2015-08-01T13:59:58.0808383+08:00" andIsTop:@"ture" andUserId:@"12" andBrowseNumber:@"14" andCollectTimes:@"15" andAreaId:@"16" andWelfares:@{@"Id":@"1",@"Name":@"管吃饭"} andSuccessBlocks:nil andFailureBlocks:^(NSString *failureMessage) {
 }];
 
 // 添加尾货
 [[TCNetworkTool sharedNetTool] tailGoodsAddWithHeadImageUrl:@"www.baidu.com" andBrand:@"niubi" andStandard:@"ddd" andCount:@"ddd" andPrice:@"12345" andLinkMan:@"wangge" andContactNumber:@"1234567" andCompanyAddress:@"tianjin" andType:@"0" andBrowseNumber:@"10" andLatitude:@"1.1" andLongitude:@"1.1" andUserId:@"santor" andIsTop:@"ture" andCreateTime:@"2015-07-30T17:18:41.7779944+08:00" andState:@"0" andCollectTimes:@"0" andAreaId:@"15" andSuccessBlocks:^(NSString *successMessage) {
 } andFailureBlocks:nil];
*/